home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
- Begin VB.Form Template
- Caption = " View source"
- ClientHeight = 3120
- ClientLeft = 60
- ClientTop = 630
- ClientWidth = 4455
- Icon = "Template.frx":0000
- LinkTopic = "Form1"
- ScaleHeight = 3120
- ScaleWidth = 4455
- StartUpPosition = 2 'CenterScreen
- Begin RichTextLib.RichTextBox rtbDefault
- Height = 3135
- Left = 0
- TabIndex = 0
- Top = 0
- Width = 4455
- _ExtentX = 7858
- _ExtentY = 5530
- _Version = 393217
- Enabled = -1 'True
- ScrollBars = 3
- DisableNoScroll = -1 'True
- RightMargin = 50000
- AutoVerbMenu = -1 'True
- TextRTF = $"Template.frx":0442
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin VB.Menu mnuFile
- Caption = "&File"
- Begin VB.Menu mnuSave
- Caption = "&Save"
- Shortcut = ^S
- End
- Begin VB.Menu mnuSpacemeout2
- Caption = "-"
- End
- Begin VB.Menu mnuExit
- Caption = "E&xit"
- Shortcut = ^X
- End
- End
- Begin VB.Menu mnuFont
- Caption = "F&ont"
- Begin VB.Menu mnuBiggerFont
- Caption = "&Bigger"
- Shortcut = {F2}
- End
- Begin VB.Menu mnuSmallerFont
- Caption = "&Smaller"
- Shortcut = {F1}
- End
- Begin VB.Menu mnuSpacemeout1
- Caption = "-"
- End
- Begin VB.Menu mnuCourier
- Caption = "&Courier New"
- Shortcut = ^C
- End
- Begin VB.Menu mnuFixedSys
- Caption = "&Fixed Sys"
- Shortcut = ^F
- End
- End
- Attribute VB_Name = "Template"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- '#################################################'
- '## ## ----------------------------------- ## ##'
- '## ## Program name: Webpage Maker 2000 ## ##'
- '## ## Started in: October, 1999 ## ##'
- '## ## Author: David VanHook ## ##'
- '## ## ----------------------------------- ## ##'
- '#################################################'
- '----------------------VARIABLE SECTION-----------------------'
- Dim strFiletoEdit As String
- Dim numSelected As Integer
- Dim savedFont As String
- '-------------------FORM ACTIVATE SECTION---------------------'
- Private Sub Form_Activate()
- On Error Resume Next
- If savedFont <> "" Then
- rtbDefault.Font = savedFont
- End If
-
- rtbDefault.LoadFile "Template.txt"
- rtbDefault.Refresh
- End Sub
- '--------------------FORM RESIZE SECTION----------------------'
- Private Sub Form_Resize()
- On Error Resume Next
- rtbDefault.Width = Me.Width - 125
- rtbDefault.Height = Me.Height - 700
- End Sub
- '------------------------FONT SECTION-------------------------'
- Private Sub mnuBiggerFont_Click()
- On Error Resume Next
- rtbDefault.Font.Size = rtbDefault.Font.Size + 1
- End Sub
- Private Sub mnuSmallerFont_Click()
- On Error Resume Next
- rtbDefault.Font.Size = rtbDefault.Font.Size - 1
- End Sub
- Private Sub mnuFixedSys_Click()
- rtbDefault.Font = "Fixedsys"
- savedFont = "Fixedsys"
- End Sub
- Private Sub mnuCourier_Click()
- rtbDefault.Font = "Courier New"
- savedFont = "Courier New"
- End Sub
- '--------------------FORM UNLOAD SECTION----------------------'
- Private Sub mnuExit_Click()
- Me.Hide
- End Sub
- '----------------------REPLACE TEMPLATE-----------------------'
- Private Sub mnuSave_Click()
- 'On Error Resume Next
- If MsgBox("Replace template page?", vbYesNo Or vbExclamation, " Overwrite file?") = vbYes Then
- rtbDefault.SaveFile "Template.txt"
- Else
- Exit Sub
- End If
- End Sub
-